home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / GENetReleaseƒ / Extras / GUtilities.h < prev    next >
Text File  |  1994-03-07  |  1KB  |  56 lines

  1. /*
  2.     GUtilities.h
  3.     
  4.     General-purpose utility routines
  5.     
  6. */
  7.  
  8. #ifndef GUTIL
  9. #define GUTIL
  10.  
  11. //Get precompiled symbols if compiling under MPW
  12. #ifdef applec
  13. #ifndef PRELOAD
  14. #pragma load "::ToolKit.precompile"
  15. #define PRELOAD
  16. #endif
  17. #else
  18. #include <Packages.h>
  19. #endif
  20.  
  21. #define    mApple                    128        /* Apple menu */
  22. #define rUserAlert                129        /* General purpose note alert */
  23.  
  24. //Globals set by InitSystem
  25.  
  26. extern Str255        gAppName;
  27. extern OSType        gSignature;
  28. extern short        gAppResRef;
  29. extern Boolean        gInBackground;
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35.  
  36. //Init QD, Fonts, Windows, etc. and call MoreMasters mbCount times
  37. void InitSystem( short mbCount );
  38.  
  39.  
  40. //Loads menubar specified by mBarNum, adds DAs to Apple menu, displays menubar
  41. Boolean LoadMenus( short mBarNum );
  42.  
  43. void TellUser(Str255 what, short errNum);
  44.  
  45. char *C2PStrCpy(char *Cstr, Str255 Pstr);
  46.  
  47. Boolean GetOpenFSSpec(SFTypeList *types, short nTypes, FSSpec *fileSpec);
  48.  
  49. Boolean GetSaveFSSpec(SFTypeList *types, FSSpec *fileSpec);
  50.  
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54.  
  55.  
  56. #endif